package system.queues;

import java.util.Queue;
import java.util.concurrent.ArrayBlockingQueue;

import system.wrap_filter.Standard;

public class WarningQueue {
	private Queue<Standard> warningQueue;

	public WarningQueue() {
		warningQueue = new ArrayBlockingQueue<Standard>(100000);
	}

	public boolean offer(Standard standard) {
		if (warningQueue.size() < 100000) {
			warningQueue.offer(standard);
			return true;
		} else {
			return false;
		}

	}

	public Standard poll() {
		return warningQueue.poll();
	}

	public int getSize() {
		return warningQueue.size();
	}
}
